﻿## CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.7)

project (Chhol-app-demo)
IF(WIN32)
	ADD_DEFINITIONS(-DWIN32)
	SET(ENVERMENT_NAME "WIN32")
ELSEIF(UNIX)	
    add_definitions(-std=c++17)
	ADD_DEFINITIONS(-DUNIX)
	ADD_DEFINITIONS(-D_DEBUG)
	SET(ENVERMENT_NAME "UNIX")	
ELSE()
	MESSAGE(STATUS "Build system is not UNIX or WIN32.")
	SET(ENVERMENT_NAME "UNKNOWN")
ENDIF()

MESSAGE("Build enverment is ${ENVERMENT_NAME}.")

# 包含子项目。
add_subdirectory (serial-port)
add_subdirectory (cc9d)
